<%@page import="org.feluma.sgci.controle.Transporte"%>
<%@page import="org.feluma.sgci.dao.PerfilDAO"%>
<%@page import="org.feluma.sgci.entidade.Perfil"%>
<%@page language="java" contentType="text/html" pageEncoding="ISO-8859-1" %>
<%@page import="java.util.*" %>
<%@include file="include/usuarioLogado.jsp" %>

<%
	Perfil  perfil = (Perfil) Transporte.request.getAttribute("perfil");

%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>SGCI FCMMG :: Cadastro Perfil</title>
    <style type="text/css">
    <!--
    @import url("css/estilo.css");
    body {
    	margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    -->
    </style>

<script src="js/utilitarios.js"></script>
</head>
<body background="imagens/fundo.gif" style="background-attachment:fixed">
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  		<tr>
    		<td height="7"><jsp:include page="include/topo.jsp" flush="true" /></td>
  		</tr>
  		<tr>
    		<td valign="top">
            	<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
      				<tr>
        				<td height="60">
            				<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1">
            					<tr>
              						<td width="76%" class="titulo"><b>Alterar</b></td>
              						<td width="24%" class="texto">
                        				<div align="right">Usu&aacute;rio logado:<%=usuarioLogado.getNome()%></div>
                        			</td>
            					</tr>
        					</table>
          				</td>
      				</tr>
      				<tr>
        				<td>
                        	<fieldset style="border-color:#003366">                           
                            <legend class="texto"><strong> Alterar perfil</strong></legend>                            
                        	<form name="form1" action="Service" method="post">                            	
                                <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                                	 <tr>
                                        <td>&nbsp; </td>
                                       	<td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="16%" align="right" class="texto">* Descricao: </td>
                                      	<td width="48%"><input name="descricao" type="text" class="textBox" id="descricao" size="80" value="<%= perfil.getDescricao()%>"></td>
                                        <td width="36%"><label id="label_descricao" class="texto_atencao" style="visibility:hidden">(* Campo descricao vazio!)</label></td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp; </td>
                                       	<td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp; </td>
                                       	<td>&nbsp;</td>
                                        <td><input name="classe" type="hidden" value="org.feluma.sgci.controle.PerfilControle">
                                            <input name="acao" type="hidden" value="gravar">
                                            <input name="codPerfil" type="hidden" value="<%=perfil.getCodigo() %>"></td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" align="center" ><input type="submit" name="cadastrar" id="cadastrar" value="Alterar"></td>
                                   	</tr>
                                </table>
                            </form>
                      </fieldset>
                      </td>
      				</tr>
      				<tr>
        				<td>&nbsp;</td>
      				</tr>
    			</table>
    		</td>
  		</tr>
  		<tr>
    		<td height="15">
	    		<% 
				int codEscola = usuarioLogado.getCodEscola();
	    		if (codEscola == 2){%>
	    			<jsp:include page="include/rodapeCpg.jsp" flush="true" />
	    		
	    		<%} else if (codEscola ==3){%>
	    			<jsp:include page="include/rodapeCmv.jsp" flush="true" />
	    		<%} else {%>
	    			<jsp:include page="include/rodape.jsp" flush="true" />
	    		<%} %>
    		</td>
  		</tr>
	</table>
</body>
</html>